package com.examiner.result;


public enum ResultCode {

    SUCCESS(200, "执行成功"),
    FAIL(4000, "执行失败");

    private Integer code;// 状态码
    private String message; // 状态信息

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer code() {
        return code;
    }

    public String message() {
        return message;
    }
}
